[INFO] fetching crate redlock-rs 0.2.1...
[INFO] building redlock-rs-0.2.1 against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] extracting crate redlock-rs 0.2.1 into /workspace/builds/worker-12/source
[INFO] validating manifest of crates.io crate redlock-rs 0.2.1 on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate redlock-rs 0.2.1
[INFO] finished tweaking crates.io crate redlock-rs 0.2.1
[INFO] tweaked toml for crates.io crate redlock-rs 0.2.1 written to /workspace/builds/worker-12/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 40c3e309d08a10db9c02e3c0a52aab4ca84815410804f8cafec448f5e7e7745f
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "40c3e309d08a10db9c02e3c0a52aab4ca84815410804f8cafec448f5e7e7745f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "40c3e309d08a10db9c02e3c0a52aab4ca84815410804f8cafec448f5e7e7745f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "40c3e309d08a10db9c02e3c0a52aab4ca84815410804f8cafec448f5e7e7745f", kill_on_drop: false }`
[INFO] [stdout] 40c3e309d08a10db9c02e3c0a52aab4ca84815410804f8cafec448f5e7e7745f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 832461d170e954c8b34b61ea3e68d1f9057f0e18f2e3a0ba568066121802053a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "832461d170e954c8b34b61ea3e68d1f9057f0e18f2e3a0ba568066121802053a", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.72
[INFO] [stderr]    Compiling matches v0.1.8
[INFO] [stderr]    Compiling tinyvec_macros v0.1.0
[INFO] [stderr]    Compiling const_fn v0.4.8
[INFO] [stderr]    Compiling bytes v1.0.1
[INFO] [stderr]    Compiling sha1 v0.6.0
[INFO] [stderr]    Compiling itoa v0.4.7
[INFO] [stderr]    Compiling standback v0.2.17
[INFO] [stderr]    Compiling time v0.2.26
[INFO] [stderr]    Compiling rand v0.8.3
[INFO] [stderr]    Compiling unicode-bidi v0.3.5
[INFO] [stderr]    Compiling form_urlencoded v1.0.1
[INFO] [stderr]    Compiling tinyvec v1.2.0
[INFO] [stderr]    Compiling combine v4.5.2
[INFO] [stderr]    Compiling unicode-normalization v0.1.18
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling url v2.2.2
[INFO] [stderr]    Compiling time-macros-impl v0.1.1
[INFO] [stderr]    Compiling async-trait v0.1.50
[INFO] [stderr]    Compiling time-macros v0.1.1
[INFO] [stderr]    Compiling redis v0.20.1
[INFO] [stderr]    Compiling redlock-rs v0.2.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range`
[INFO] [stdout]  --> src/redlock.rs:9:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rand::distributions::{IndependentSample, Range};
[INFO] [stdout]   |                           ^^^^^^^^^^^^^^^^^  ^^^^^ no `Range` in `distributions`
[INFO] [stdout]   |                           |
[INFO] [stdout]   |                           no `IndependentSample` in `distributions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_time` in crate `time`
[INFO] [stdout]   --> src/redlock.rs:99:26
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let time = time::get_time();
[INFO] [stdout]    |                          ^^^^^^^^ not found in `time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]  --> src/redlock.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::thread::sleep_ms;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/redlock.rs:142:13
[INFO] [stdout]     |
[INFO] [stdout] 142 |             sleep_ms(n);
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/redlock.rs:89:119
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let result : RedisResult<Value> = redis::cmd("SET").arg(resource).arg(val).arg("nx").arg("px").arg(ttl).query(&con);
[INFO] [stdout]    |                                                                                                                       ^^^^ types differ in mutability
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected mutable reference `&mut dyn ConnectionLike`
[INFO] [stdout]                       found reference `&Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/redlock.rs:153:78
[INFO] [stdout]     |
[INFO] [stdout] 153 |         let result : RedisResult<i32> = script.key(resource).arg(val).invoke(&con);
[INFO] [stdout]     |                                                                              ^^^^ types differ in mutability
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut dyn ConnectionLike`
[INFO] [stdout]                        found reference `&Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `redlock-rs`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "832461d170e954c8b34b61ea3e68d1f9057f0e18f2e3a0ba568066121802053a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "832461d170e954c8b34b61ea3e68d1f9057f0e18f2e3a0ba568066121802053a", kill_on_drop: false }`
[INFO] [stdout] 832461d170e954c8b34b61ea3e68d1f9057f0e18f2e3a0ba568066121802053a
